-- poisoned
-- created by zhuangsl
-- 中毒
-- 需要在描述中计算伤害，单独列出

return {
    fetchProps = function(who, status, condition)
        local props = {};
        local prop = condition["prop"] or {};

        table.insert(props, prop);

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;
        
        local prop = condition["prop"] or {};

        -- 减伤率
        local rate = math.modf(tonumber(prop[2]) / 10);
        desc = string.gsub(desc, "{rate}", rate);
        
        -- 伤害
        local value = prop[3] ;       
        desc = string.gsub(desc, "{value}", value);

        return desc;
    end,
};
